const { SyncWaterfallHook } = require('tapable')
let hook = new SyncWaterfallHook(['name', 'age'])

// fn1只是作为标记使用
hook.tap('fn1', (name, age) => {
    console.log('fn1--->',name, age);
    return 'ret1'
})

hook.tap('fn2', (name, age) => {
    console.log('fn2--->',name, age);
    return 'ret2'
})

hook.tap('fn3', (name, age) => {
    console.log('fn3--->',name, age);
    return 'ret3'
})

hook.call('zxx', 44)



// SyncWaterfallHook


